package com.ruoyi.tcm.mapper;

import java.util.List;
import com.ruoyi.tcm.domain.TcmKnowledgeBase;
import org.apache.ibatis.annotations.Mapper;

/**
 * 知识库Mapper接口
 * 
 * @author cong
 * @date 2025-02-07
 */
@Mapper
public interface TcmKnowledgeBaseMapper 
{
    /**
     * 查询知识库
     * 
     * @param id 知识库主键
     * @return 知识库
     */
    public TcmKnowledgeBase selectTcmKnowledgeBaseById(Long id);

    /**
     * 查询知识库列表
     * 
     * @param tcmKnowledgeBase 知识库
     * @return 知识库集合
     */
    public List<TcmKnowledgeBase> selectTcmKnowledgeBaseList(TcmKnowledgeBase tcmKnowledgeBase);

    /**
     * 新增知识库
     * 
     * @param tcmKnowledgeBase 知识库
     * @return 结果
     */
    public int insertTcmKnowledgeBase(TcmKnowledgeBase tcmKnowledgeBase);

    /**
     * 修改知识库
     * 
     * @param tcmKnowledgeBase 知识库
     * @return 结果
     */
    public int updateTcmKnowledgeBase(TcmKnowledgeBase tcmKnowledgeBase);

    /**
     * 删除知识库
     * 
     * @param id 知识库主键
     * @return 结果
     */
    public int deleteTcmKnowledgeBaseById(Long id);

    /**
     * 批量删除知识库
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTcmKnowledgeBaseByIds(Long[] ids);
}
